﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/MasterPage_Base.master" AutoEventWireup="true" CodeFile="WebNavList.aspx.cs" Inherits="System_Page_WebNavList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="Server">
    网站菜单管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <table style="width: 100%">
        <tr>
            <td>
                <table>
                    <tr>
                        <td>产品名称：
                        </td>
                        <td>
                            <asp:TextBox ID="txt_Title" runat="server" CssClass="TextBox"></asp:TextBox>
                        </td>
                        <td>产品类型：
                        </td>
                        <td>
                            <asp:TextBox ID="txt_ProductType" runat="server" CssClass="TextBox"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btn_Search" runat="server" Text="查询" CssClass="Button" OnClick="btn_Search_Click" />
                            <asp:Button ID="btn_Add" runat="server" Text="增加" PostBackUrl="WebNavModify.aspx?Action=Add"
                                CssClass="Button" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Repeater ID="RepeaterList" runat="server" OnItemCommand="RepeaterList_ItemCommand"
                    OnItemDataBound="RepeaterList_ItemDataBound">
                    <HeaderTemplate>
                        <table class="DataList" border="0" style="width: 100%; margin-top: 10px;">
                            <tr>
                                <th>菜单名称</th>
                                <th>菜单编码</th>
                                <th style="width: 60px;">排序</th>
                                <th style="width: 100px;">状态</th>
                                <th style="width: 100px;">操作</th>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# (Convert.ToInt32(Eval("ParentId"))==0?"": "├──") + Eval("Title")%>
                            </td>
                            <td>
                                <%# Eval("Code")%>
                            </td>
                            <td>
                                <%# Eval("OrderNo")%>
                            </td>
                            <td style="text-align: center;">
                                <asp:Label ID="ValidText" runat="server" Text="启用"></asp:Label>
                                <asp:LinkButton ID="BtnOperate" runat="server" CommandName="Valid" CommandArgument='<%#Eval("webnavid") %>'>修改</asp:LinkButton>
                            </td>
                            <td style="text-align: center;">
                                <asp:LinkButton ID="lbtn_Update" runat="server" CommandName="Update" CommandArgument='<%#Eval("webnavid") %>'>编辑</asp:LinkButton>
                                <asp:LinkButton ID="lbtn_Delete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("webnavid") %>'
                                    OnClientClick="return isDelete()">删除</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
        <tr>
            <td>
                <div class="Paginate">
                    <webdiyer:AspNetPager ID="PaginateCtl" runat="server" OnPageChanged="PaginateCtl_PageChanged" />
                </div>
            </td>
        </tr>
    </table>
</asp:Content>

